function wm(e, t, n) {
    return e(n = {
        path: t,
        exports: {},
        require: function (e, t) {
            return function () {
                throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")
            }(null == t && n.path)
        }
    }, n.exports),
        n.exports
}

var xm = wm((function (e, t) {
        var n;
        e.exports = (n = n || function (e, t) {
            var n = Object.create || function () {
                function e() {
                }

                return function (t) {
                    var n;
                    return e.prototype = t,
                        n = new e,
                        e.prototype = null,
                        n
                }
            }()
                , o = {}
                , i = o.lib = {}
                , r = i.Base = {
                extend: function (e) {
                    var t = n(this);
                    return e && t.mixIn(e),
                    t.hasOwnProperty("init") && this.init !== t.init || (t.init = function () {
                            t.$super.init.apply(this, arguments)
                        }
                    ),
                        t.init.prototype = t,
                        t.$super = this,
                        t
                },
                create: function () {
                    var e = this.extend();
                    return e.init.apply(e, arguments),
                        e
                },
                init: function () {
                },
                mixIn: function (e) {
                    for (var t in e)
                        e.hasOwnProperty(t) && (this[t] = e[t]);
                    e.hasOwnProperty("toString") && (this.toString = e.toString)
                },
                clone: function () {
                    return this.init.prototype.extend(this)
                }
            }
                , s = i.WordArray = r.extend({
                init: function (e, t) {
                    e = this.words = e || [],
                        this.sigBytes = null != t ? t : 4 * e.length
                },
                toString: function (e) {
                    return (e || c).stringify(this)
                },
                concat: function (e) {
                    var t = this.words
                        , n = e.words
                        , o = this.sigBytes
                        , i = e.sigBytes;
                    if (this.clamp(),
                    o % 4)
                        for (var r = 0; r < i; r++) {
                            var s = n[r >>> 2] >>> 24 - r % 4 * 8 & 255;
                            t[o + r >>> 2] |= s << 24 - (o + r) % 4 * 8
                        }
                    else
                        for (r = 0; r < i; r += 4)
                            t[o + r >>> 2] = n[r >>> 2];
                    return this.sigBytes += i,
                        this
                },
                clamp: function () {
                    var t = this.words
                        , n = this.sigBytes;
                    t[n >>> 2] &= 4294967295 << 32 - n % 4 * 8,
                        t.length = e.ceil(n / 4)
                },
                clone: function () {
                    var e = r.clone.call(this);
                    return e.words = this.words.slice(0),
                        e
                },
                random: function (t) {
                    for (var n, o = [], i = function (t) {
                        var n = 987654321
                            , o = 4294967295;
                        return function () {
                            var i = ((n = 36969 * (65535 & n) + (n >> 16) & o) << 16) + (t = 18e3 * (65535 & t) + (t >> 16) & o) & o;
                            return i /= 4294967296,
                            (i += .5) * (e.random() > .5 ? 1 : -1)
                        }
                    }, r = 0; r < t; r += 4) {
                        var a = i(4294967296 * (n || e.random()));
                        n = 987654071 * a(),
                            o.push(4294967296 * a() | 0)
                    }
                    return new s.init(o, t)
                }
            })
                , a = o.enc = {}
                , c = a.Hex = {
                stringify: function (e) {
                    for (var t = e.words, n = e.sigBytes, o = [], i = 0; i < n; i++) {
                        var r = t[i >>> 2] >>> 24 - i % 4 * 8 & 255;
                        o.push((r >>> 4).toString(16)),
                            o.push((15 & r).toString(16))
                    }
                    return o.join("")
                },
                parse: function (e) {
                    for (var t = e.length, n = [], o = 0; o < t; o += 2)
                        n[o >>> 3] |= parseInt(e.substr(o, 2), 16) << 24 - o % 8 * 4;
                    return new s.init(n, t / 2)
                }
            }
                , l = a.Latin1 = {
                stringify: function (e) {
                    for (var t = e.words, n = e.sigBytes, o = [], i = 0; i < n; i++) {
                        var r = t[i >>> 2] >>> 24 - i % 4 * 8 & 255;
                        o.push(String.fromCharCode(r))
                    }
                    return o.join("")
                },
                parse: function (e) {
                    for (var t = e.length, n = [], o = 0; o < t; o++)
                        n[o >>> 2] |= (255 & e.charCodeAt(o)) << 24 - o % 4 * 8;
                    return new s.init(n, t)
                }
            }
                , u = a.Utf8 = {
                stringify: function (e) {
                    try {
                        return decodeURIComponent(escape(l.stringify(e)))
                    } catch (t) {
                        throw new Error("Malformed UTF-8 data")
                    }
                },
                parse: function (e) {
                    return l.parse(unescape(encodeURIComponent(e)))
                }
            }
                , d = i.BufferedBlockAlgorithm = r.extend({
                reset: function () {
                    this._data = new s.init,
                        this._nDataBytes = 0
                },
                _append: function (e) {
                    "string" == typeof e && (e = u.parse(e)),
                        this._data.concat(e),
                        this._nDataBytes += e.sigBytes
                },
                _process: function (t) {
                    var n = this._data
                        , o = n.words
                        , i = n.sigBytes
                        , r = this.blockSize
                        , a = i / (4 * r)
                        , c = (a = t ? e.ceil(a) : e.max((0 | a) - this._minBufferSize, 0)) * r
                        , l = e.min(4 * c, i);
                    if (c) {
                        for (var u = 0; u < c; u += r)
                            this._doProcessBlock(o, u);
                        var d = o.splice(0, c);
                        n.sigBytes -= l
                    }
                    return new s.init(d, l)
                },
                clone: function () {
                    var e = r.clone.call(this);
                    return e._data = this._data.clone(),
                        e
                },
                _minBufferSize: 0
            });
            i.Hasher = d.extend({
                cfg: r.extend(),
                init: function (e) {
                    this.cfg = this.cfg.extend(e),
                        this.reset()
                },
                reset: function () {
                    d.reset.call(this),
                        this._doReset()
                },
                update: function (e) {
                    return this._append(e),
                        this._process(),
                        this
                },
                finalize: function (e) {
                    return e && this._append(e),
                        this._doFinalize()
                },
                blockSize: 16,
                _createHelper: function (e) {
                    return function (t, n) {
                        return new e.init(n).finalize(t)
                    }
                },
                _createHmacHelper: function (e) {
                    return function (t, n) {
                        return new f.HMAC.init(e, n).finalize(t)
                    }
                }
            });
            var f = o.algo = {};
            return o
        }(Math),
            n)
    }
))
    , Tm = xm
var km = (wm((function (e, t) {
        var n;
        e.exports = (n = Tm,
            function (e) {
                var t = n
                    , o = t.lib
                    , i = o.WordArray
                    , r = o.Hasher
                    , s = t.algo
                    , a = [];
                !function () {
                    for (var t = 0; t < 64; t++)
                        a[t] = 4294967296 * e.abs(e.sin(t + 1)) | 0
                }();
                var c = s.MD5 = r.extend({
                    _doReset: function () {
                        this._hash = new i.init([1732584193, 4023233417, 2562383102, 271733878])
                    },
                    _doProcessBlock: function (e, t) {
                        for (var n = 0; n < 16; n++) {
                            var o = t + n
                                , i = e[o];
                            e[o] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8)
                        }
                        var r = this._hash.words
                            , s = e[t + 0]
                            , c = e[t + 1]
                            , h = e[t + 2]
                            , p = e[t + 3]
                            , g = e[t + 4]
                            , m = e[t + 5]
                            , v = e[t + 6]
                            , _ = e[t + 7]
                            , y = e[t + 8]
                            , b = e[t + 9]
                            , w = e[t + 10]
                            , x = e[t + 11]
                            , T = e[t + 12]
                            , k = e[t + 13]
                            , S = e[t + 14]
                            , C = e[t + 15]
                            , E = r[0]
                            , A = r[1]
                            , O = r[2]
                            , P = r[3];
                        E = l(E, A, O, P, s, 7, a[0]),
                            P = l(P, E, A, O, c, 12, a[1]),
                            O = l(O, P, E, A, h, 17, a[2]),
                            A = l(A, O, P, E, p, 22, a[3]),
                            E = l(E, A, O, P, g, 7, a[4]),
                            P = l(P, E, A, O, m, 12, a[5]),
                            O = l(O, P, E, A, v, 17, a[6]),
                            A = l(A, O, P, E, _, 22, a[7]),
                            E = l(E, A, O, P, y, 7, a[8]),
                            P = l(P, E, A, O, b, 12, a[9]),
                            O = l(O, P, E, A, w, 17, a[10]),
                            A = l(A, O, P, E, x, 22, a[11]),
                            E = l(E, A, O, P, T, 7, a[12]),
                            P = l(P, E, A, O, k, 12, a[13]),
                            O = l(O, P, E, A, S, 17, a[14]),
                            E = u(E, A = l(A, O, P, E, C, 22, a[15]), O, P, c, 5, a[16]),
                            P = u(P, E, A, O, v, 9, a[17]),
                            O = u(O, P, E, A, x, 14, a[18]),
                            A = u(A, O, P, E, s, 20, a[19]),
                            E = u(E, A, O, P, m, 5, a[20]),
                            P = u(P, E, A, O, w, 9, a[21]),
                            O = u(O, P, E, A, C, 14, a[22]),
                            A = u(A, O, P, E, g, 20, a[23]),
                            E = u(E, A, O, P, b, 5, a[24]),
                            P = u(P, E, A, O, S, 9, a[25]),
                            O = u(O, P, E, A, p, 14, a[26]),
                            A = u(A, O, P, E, y, 20, a[27]),
                            E = u(E, A, O, P, k, 5, a[28]),
                            P = u(P, E, A, O, h, 9, a[29]),
                            O = u(O, P, E, A, _, 14, a[30]),
                            E = d(E, A = u(A, O, P, E, T, 20, a[31]), O, P, m, 4, a[32]),
                            P = d(P, E, A, O, y, 11, a[33]),
                            O = d(O, P, E, A, x, 16, a[34]),
                            A = d(A, O, P, E, S, 23, a[35]),
                            E = d(E, A, O, P, c, 4, a[36]),
                            P = d(P, E, A, O, g, 11, a[37]),
                            O = d(O, P, E, A, _, 16, a[38]),
                            A = d(A, O, P, E, w, 23, a[39]),
                            E = d(E, A, O, P, k, 4, a[40]),
                            P = d(P, E, A, O, s, 11, a[41]),
                            O = d(O, P, E, A, p, 16, a[42]),
                            A = d(A, O, P, E, v, 23, a[43]),
                            E = d(E, A, O, P, b, 4, a[44]),
                            P = d(P, E, A, O, T, 11, a[45]),
                            O = d(O, P, E, A, C, 16, a[46]),
                            E = f(E, A = d(A, O, P, E, h, 23, a[47]), O, P, s, 6, a[48]),
                            P = f(P, E, A, O, _, 10, a[49]),
                            O = f(O, P, E, A, S, 15, a[50]),
                            A = f(A, O, P, E, m, 21, a[51]),
                            E = f(E, A, O, P, T, 6, a[52]),
                            P = f(P, E, A, O, p, 10, a[53]),
                            O = f(O, P, E, A, w, 15, a[54]),
                            A = f(A, O, P, E, c, 21, a[55]),
                            E = f(E, A, O, P, y, 6, a[56]),
                            P = f(P, E, A, O, C, 10, a[57]),
                            O = f(O, P, E, A, v, 15, a[58]),
                            A = f(A, O, P, E, k, 21, a[59]),
                            E = f(E, A, O, P, g, 6, a[60]),
                            P = f(P, E, A, O, x, 10, a[61]),
                            O = f(O, P, E, A, h, 15, a[62]),
                            A = f(A, O, P, E, b, 21, a[63]),
                            r[0] = r[0] + E | 0,
                            r[1] = r[1] + A | 0,
                            r[2] = r[2] + O | 0,
                            r[3] = r[3] + P | 0
                    },
                    _doFinalize: function () {
                        var t = this._data
                            , n = t.words
                            , o = 8 * this._nDataBytes
                            , i = 8 * t.sigBytes;
                        n[i >>> 5] |= 128 << 24 - i % 32;
                        var r = e.floor(o / 4294967296)
                            , s = o;
                        n[15 + (i + 64 >>> 9 << 4)] = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8),
                            n[14 + (i + 64 >>> 9 << 4)] = 16711935 & (s << 8 | s >>> 24) | 4278255360 & (s << 24 | s >>> 8),
                            t.sigBytes = 4 * (n.length + 1),
                            this._process();
                        for (var a = this._hash, c = a.words, l = 0; l < 4; l++) {
                            var u = c[l];
                            c[l] = 16711935 & (u << 8 | u >>> 24) | 4278255360 & (u << 24 | u >>> 8)
                        }
                        return a
                    },
                    clone: function () {
                        var e = r.clone.call(this);
                        return e._hash = this._hash.clone(),
                            e
                    }
                });

                function l(e, t, n, o, i, r, s) {
                    var a = e + (t & n | ~t & o) + i + s;
                    return (a << r | a >>> 32 - r) + t
                }

                function u(e, t, n, o, i, r, s) {
                    var a = e + (t & o | n & ~o) + i + s;
                    return (a << r | a >>> 32 - r) + t
                }

                function d(e, t, n, o, i, r, s) {
                    var a = e + (t ^ n ^ o) + i + s;
                    return (a << r | a >>> 32 - r) + t
                }

                function f(e, t, n, o, i, r, s) {
                    var a = e + (n ^ (t | ~o)) + i + s;
                    return (a << r | a >>> 32 - r) + t
                }

                t.MD5 = r._createHelper(c),
                    t.HmacMD5 = r._createHmacHelper(c)
            }(Math),
            n.MD5)
    }
)),
    wm((function (e, t) {
            var n, o, i;
            e.exports = (o = (n = Tm).lib.Base,
                i = n.enc.Utf8,
                void (n.algo.HMAC = o.extend({
                    init: function (e, t) {
                        e = this._hasher = new e.init,
                        "string" == typeof t && (t = i.parse(t));
                        var n = e.blockSize
                            , o = 4 * n;
                        t.sigBytes > o && (t = e.finalize(t)),
                            t.clamp();
                        for (var r = this._oKey = t.clone(), s = this._iKey = t.clone(), a = r.words, c = s.words, l = 0; l < n; l++)
                            a[l] ^= 1549556828,
                                c[l] ^= 909522486;
                        r.sigBytes = s.sigBytes = o,
                            this.reset()
                    },
                    reset: function () {
                        var e = this._hasher;
                        e.reset(),
                            e.update(this._iKey)
                    },
                    update: function (e) {
                        return this._hasher.update(e),
                            this
                    },
                    finalize: function (e) {
                        var t = this._hasher
                            , n = t.finalize(e);
                        return t.reset(),
                            t.finalize(this._oKey.clone().concat(n))
                    }
                })))
        }
    )),
    wm((function (e, t) {
            e.exports = Tm.HmacMD5
        }
    )))


var wv = function (e, t) {
    let n = "";
    return Object.keys(e).sort().forEach((function (t) {
            e[t] && (n = n + "&" + t + "=" + e[t])
        }
    )),
        n = n.slice(1),
        km(n, t).toString()
}
param = {
    "method": "serverless.function.runtime.invoke",
    "params": "{\"functionTarget\":\"request\",\"functionArgs\":{\"method\":\"new_list\",\"params\":[{\"siteid\":10005,\"categoryid\":1035,\"page\":1,\"time\":1720941155,\"appid\":\"ctfc80e697c82b6319\",\"appecret\":\"dc45e1e4ba8fe4c366d6ee55fa833655\"}],\"clientInfo\":{\"PLATFORM\":\"web\",\"OS\":\"windows\",\"APPID\":\"__UNI__E9E3343\",\"DEVICEID\":\"17209384964869009522\",\"scene\":1001,\"appId\":\"__UNI__E9E3343\",\"appLanguage\":\"zh-Hans\",\"appName\":\"xyrtv\",\"appVersion\":\"1.0.0\",\"appVersionCode\":\"100\",\"browserName\":\"chrome\",\"browserVersion\":\"126.0.0.0\",\"deviceId\":\"17209384964869009522\",\"deviceModel\":\"PC\",\"deviceOrientation\":\"portrait\",\"devicePixelRatio\":1.25,\"deviceType\":\"pc\",\"hostLanguage\":\"zh-CN\",\"hostName\":\"chrome\",\"hostTheme\":\"light\",\"hostVersion\":\"126.0.0.0\",\"osName\":\"windows\",\"osVersion\":\"10 x64\",\"safeArea\":{\"left\":0,\"right\":1519,\"top\":0,\"bottom\":703,\"width\":1519,\"height\":703},\"safeAreaInsets\":{\"top\":0,\"right\":0,\"bottom\":0,\"left\":0},\"screenHeight\":864,\"screenWidth\":1536,\"statusBarHeight\":0,\"ua\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36\",\"uniCompileVersion\":\"4.06\",\"uniPlatform\":\"web\",\"uniRuntimeVersion\":\"4.06\",\"windowBottom\":0,\"windowHeight\":703,\"windowTop\":0,\"windowWidth\":1519,\"locale\":\"zh-Hans\",\"LOCALE\":\"zh-Hans\"}}}",
    "spaceId": "mp-47a01d48-4ebd-4a17-b9bd-e6ff07d12e13",
    "timestamp": 1720941155796,
    "token": "457d2a46-6abb-4109-b2cd-6d2c121f2073"
}
clientSecret = "IxLgK9SIaJLW69Lq7x/uTg=="
result = wv(param, clientSecret)
console.log(result)